using MbUnit.Core;

namespace EnterpriseLibraryContrib.PostSharp4EntLib.Test
{
    internal static class MbUnitRunner
    {
        public static int Execute()
        {
            using ( AutoRunner runner = new AutoRunner() )
            {
                runner.Load();
                runner.Run();
                runner.ReportToText();

                return runner.ExitCode;
            }
        }
    }
}